package tw.com.softleader.fire.setting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.fire.common.dao.GenericDao;
import tw.com.softleader.fire.common.service.GenericService;
import tw.com.softleader.fire.setting.dao.OccupationDao;
import tw.com.softleader.fire.setting.entity.OccupationEntity;

/**
 * @Author:Rhys
 */

@Service
public class OccupationService extends GenericService<OccupationEntity> {

	@Autowired
	private OccupationDao dao;
	
	@Override
	protected GenericDao<OccupationEntity> getDao() {
		return dao;
	}
	
	protected OccupationDao getOccupationDao() {
		return dao;
	}
	
	public List<OccupationEntity> search(OccupationEntity entity){
		return getOccupationDao().findByCode(entity);
	}
	

}
